package com.ccys.doctor.controller;

import com.ccys.common.vo.ResponseResultApp;
import com.ccys.db.vo.doctor.memo.GetMemoAttachedFilesVo;
import com.ccys.doctor.service.MemoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: WhiteCoat
 * @description: 备忘录相关接口
 * @author: ZhangJingCan
 * @create: 2024-02-21 10:19
 **/

@RestController
@Api(tags = "备忘录相关接口")
@RequestMapping("memo")
public class MemoController {

    @Autowired
    private MemoService memoService;

    //触发时机：咨询历史详细信息页面
    @ApiOperation("获取备忘录附件")
    @GetMapping(value = "/GetMemoAttachedFiles")
    public ResponseResultApp<List<GetMemoAttachedFilesVo>> getMemoAttachedFiles(String bookingId) {
        return memoService.getMemoAttachedFiles(bookingId);
    }

}
